package com.wangzhixuan.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.javassist.runtime.DotClass;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.wangzhixuan.model.User;
import com.wangzhixuan.model.vo.UserVo;
import com.wangzhixuan.task.DocDto;
import com.wangzhixuan.task.ItbUser;
import com.wangzhixuan.task.OrderInfo;
import com.wangzhixuan.task.UserDoc;
import com.wangzhixuan.task.VipUser;

/**
 *
 * User 表数据库控制层接口
 */
public interface UserMapper extends BaseMapper<User> {

    UserVo selectUserVoById(@Param("id") Long id);

    List<Map<String, Object>> selectUserPage(Pagination page, Map<String, Object> params);
    
    // 获取用户信息
    List<ItbUser> getItbUserInfo(Map<String, Object> param);
    List<UserDoc> getUserDocType(Map<String, Object> parm);// 获取作品品类
    List<UserDoc> getUserDocThumb(Map<String, Object> parm);// 获取作品数
    
    List<UserDoc> getUserShopType(Map<String, Object> parm);// 购物车品类
    List<UserDoc> getUserShopThumb(Map<String, Object> parm);// 购物车图
    
    
    List<OrderInfo> getOrderInfo(Map<String, Object> parm);
    
    List<DocDto> getOrderDoc(Map<String, Object> parm);
    List<DocDto> getOrderDocThumb(Map<String, Object> parm);
    
    
    List<VipUser> getVipUserInfo(Map<String, Object> param);
}